import { get,del,patch,post } from '../../utils/request';

//获取店铺详情
export function storeApi(obj) {
    return get(`/store/${obj.id}`);
}
//获取店铺全部商品详情
export function storegoodsApi(obj) {
    return get(`/store/goods/${obj.id}`,obj);
}
//获取店铺上新商品
export function storeNewGoodsApi(obj) {
    return get(`/store/${obj.storeId}/goods/new/`,obj);
}
//获取店铺优惠券
export function storeCounponApi(obj) {
    return get(`/store/${obj.storeId}/coupons`,obj);
}
//获取店铺分类
export function storeClassApi(obj) {
    return get(`/store/${obj.storeId}/class`,obj);
}
//获取店铺各分类下的商品
export function storeClassGoodsApi(obj) {
    return get(`/store/class/goods`,obj);
}
//获取店铺关注
export function storeFavgoodsApi(obj) {
    return post(`/store/fav/goods`,obj);
}
//领取优惠券
export function storeCouApi(obj) {
    return post(`/store/receive/coupon`,obj);
}
//分类筛选
export function filterGoodsApi(obj) {
    return get(`/goods/filter`,obj);
}
//确定分类筛选
export function filterSureApi(obj) {
    return get(`/goods/search`,obj);
}
//全部订单搜索
export function OrderSearchApi(obj) {
    return get(`/order/search/${obj.check}`,obj);
}
